<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<h:outputStylesheet name="css/estilo.css" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><ui:insert name="title">BASILI - Ferramento de Apoio a Planejamento de Estudos Experimentais</ui:insert>
	</title>

	<style>
body {
	font-size: 12px;
}
</style>

</h:head>
<h:body>
	<f:view locale="#{i18N.locale}">
		<div id="header">

			<h:panelGrid columns="2" cellpadding="0" cellspacing="0" columnClasses="img,lang" width="100%">
				<h:graphicImage name="img/header_uni.jpg" />
				<h:panelGrid columns="1">
					<h:outputText value="BASILI"  id="sist"/>
					<h:outputText value="#{msgs.labelSistema}"/>
				</h:panelGrid>
			</h:panelGrid>

		</div>

		<form method="post" action="j_security_check">
			<p:panel id="panelLogin" header="#{msgs.labelLogin}" style="width: 250px; margin: 0 auto; text-align: left;">

<h:form>
				<h:panelGrid columns="2" cellspacing="15">
					<h:outputText value="#{msgs.usuario}" />
					<input type="text" name="j_username" size="12" />

					<h:outputText value="#{msgs.senha}"  />
					<input type="password" name="j_password" size="12"/>


					<h:commandLink id="acessoLink2" value="Esqueci a Senha" onclick="dlgEsqueciSenha.show()" style="margin-left: 10px;"/>
					<input type="submit" value="Login" />
				</h:panelGrid>
</h:form>
			</p:panel>

		</form>

		<div id="footer">
			<h:form>

				<h:panelGrid columns="2" cellpadding="0" cellspacing="0"
					rendered="#{i18N.bIngles}" width="100%" rowClasses="lang"
					columnClasses=" ,bandeira">
					<h:commandLink value="inglês" action="#{i18N.changLangEn}" />
					<h:commandButton id="en" title="ingl�s"
						image="/resources/img/usa.png" action="#{i18N.changLangEn}" />
				</h:panelGrid>

				<h:panelGrid columns="2" cellpadding="0" cellspacing="0"
					rendered="#{i18N.bPortugues}" width="100%" rowClasses="lang"
					columnClasses=" ,bandeira">
					<h:commandLink value="português" action="#{i18N.changLangPt}" />
					<h:commandButton id="pt" title="portugu�s"
						image="/resources/img/brasil.png" action="#{i18N.changLangPt}" />
				</h:panelGrid>

			</h:form>
		</div>
	</f:view>
</h:body>
</html>